<?php 
header('Content-Type:text/html;charset=gbk');
require_once("conn.php");
$id = $_GET['id'];
$module = $_GET['module'];
$mark = $_GET['mark'];
if($module=="travel"){
	$sql = "insert into pcd_mark(fid,module,mark) values(".$id.",'".$module."','".$mark."')";
	mysql_query($sql);
	echo "<script>location.href='travel_detail.php?id=".$id."';</script>";
}else if($module=="route"){
	$sql = "insert into pcd_mark(fid,module,mark) values(".$id.",'".$module."','".$mark."')";	
	mysql_query($sql);
	echo "<script>location.href='route_detail.php?id=".$id."';</script>";
}else if($module=="scence"){
	$sql = "insert into pcd_mark(fid,module,mark) values(".$id.",'".$module."','".$mark."')";
	mysql_query($sql);
	echo "<script>location.href='scence_detail.php?id=".$id."';</script>";
}else if($module=="play"){
	$sql = "insert into pcd_mark(fid,module,mark) values(".$id.",'".$module."','".$mark."')";
	mysql_query($sql);
	echo "<script>location.href='play_detail.php?id=".$id."';</script>";
}
?>